<?php
$clock=microtime(); setcookie('clockindex',$clock);
session_start();
if(file_exists('plugin/base/.db/connect.php'))include'plugin/base/.db/connect.php';
else include'firstuser.php'; //plugin/base/

$geist='../../index2.php';
include'plugin/geist/geist.php';
	//	include'plugin/geist/verify.php';

if(!$_GET){}
else{}

$site = $_GET["site"];
$plugin = $_GET["plugin"];
$page = $_GET["page"];

/*
<?php
session_start();
session_regenerate_id(true);
header('Location: index1.php');
//exit;
?>
$_SESSION['root']=getcwd();
include'php/curPageURL.php';
$stripfromroot=strpos($curPageURL,"index.php?site=");
$_SESSION['rootpage'] = substr($curPageURL,0,$stripfromroot+9);
$_SESSION['rootdomain'] = substr($curPageURL,0,$stripfromroot);

	
include $_SESSION['root'] . '/plugin/base/cms/stage1/connections.php';
include $_SESSION['root'] . '/plugin/base/cms/stage1/connectors.php';

if (($cpool->setupOK() == 0) && ($page != 'stage1')) {
    header("Location: index.php?site=nosite&plugin=base&page=stage1");
}

include $_SESSION['root'] . '/plugin/base/cms/stage1/connection.php';
include $_SESSION['root'] . '/plugin/base/cms/stage2/check.php';

if (($cpool->setupOK() != 0) && ($page != 'stage2') && (stage2check() == true)){
     header("Location: index.php?site=nosite&plugin=base&page=stage2");
}

//include 'plugin/base/cms/all/generatecontent.php';

include'connect.php';
*/
?>